package com.ky.tms.util;

import org.apache.commons.codec.digest.DigestUtils;

import java.util.UUID;

public class SecretUtil {

    public static String md5(String pwd, int times){
        for(int i=0; i<times; i++){
            pwd = DigestUtils.md5Hex(pwd);
        }
        return pwd;
    }

    public static String uuid(){
        return UUID.randomUUID().toString().replace("-","").toUpperCase();
    }

}
